package vcp.models;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;

import vcp.common.AbstractModel;
import client.Message;
import control.SimpleClient;
import db.parking.beans.Orders;

public class OrdersTrackModel  extends AbstractModel{
	
	public void trackOrder(Orders bean) {
		client = SimpleClient.getInstance();
		client.addPropertyChangeListener(this);	
		msg = new Message(bean,"TrackOrder");	
		 try {
				client.sendToServer(msg);
				//Thread.sleep(500);
				// msg = client.getReturnMsg();
		 }
		 catch (Exception ex)
		    {
			 System.out.println(ex.toString()+" OrderControl->TrackOrder");
		    }
				
		//setChanged();
		//notifyObservers(msg);			
	}
}
